<!-- BaseCard -->
<template>
  <div class="BaseCard-root">
    <div class="title">
      <span>{{ title }}</span>
    </div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'BaseCard',
  props: {
    title: {
      type: String,
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.BaseCard-root {
  box-sizing: border-box;
  padding: 16px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s;

  .title {
    display: flex;
    align-items: center;
    margin-bottom: 12px;

    &:before {
      content: '';
      display: block;
      width: 3px;
      height: 14px;
      background-color: #1890ff;
      margin-right: 6px;
      position: relative;
      top: -1px;
    }

    span {
      font-size: 16px;
      line-height: 20px;
      font-weight: bold;
      color: rgba(0, 0, 0, .85);
    }
  }
}
</style>
